package com.yanqu.road.logic.bussiness.union;

import com.yanqu.road.logic.bussiness.DaoHelper;
import com.yanqu.road.entity.union.UnionWarDetail;
import com.yanqu.road.entity.union.UserUnionWarMark;

import java.util.Map;

public class UnionWarBussiness {

	public static Map<Integer, Map<String, UnionWarDetail>> getUnionWarDetailMap(int mark) {
		return DaoHelper.getUnionWarDetailDaoImpl().getUnionWarDetailMap(mark);
	}

	public static boolean addUnionWarDetail(UnionWarDetail unionWarDetail) {
		return DaoHelper.getUnionWarDetailDaoImpl().add(unionWarDetail);
	}

	public static boolean updateUnionWarDetail(UnionWarDetail unionWarDetail) {
		return DaoHelper.getUnionWarDetailDaoImpl().update(unionWarDetail);
	}

	public static UserUnionWarMark getUserUnionWarMark(long userId) {
		return DaoHelper.getUserUnionWarMarkImpl().getUserUnionWarMark(userId);
	}

	public static boolean addUserUnionWarMark(UserUnionWarMark userUnionWarMark) {
		return DaoHelper.getUserUnionWarMarkImpl().add(userUnionWarMark);
	}

	public static boolean updateUserUnionWarMark(UserUnionWarMark userUnionWarMark) {
		return DaoHelper.getUserUnionWarMarkImpl().update(userUnionWarMark);
	}
}
